# Created with pycharm
# author:ju bai
# Date:2021/7/20
# Time:9:16
from selenium import webdriver
import time
from selenium.webdriver.common.action_chains import ActionChains

driver = webdriver.Chrome()
driver.get("https://www.baidu.com/")
driver.maximize_window()

driver.find_element_by_id("kw").send_keys("姜云升")
q = driver.find_element_by_id("su")
# 鼠标事件
# 双击
# ActionChains(driver).double_click(q).perform()
# time.sleep(3)
# 右击
ActionChains(driver).context_click(q).perform()

time.sleep(6)
driver.quit()